#ifndef INCLUDED_HEALTH_H
#define INCLUDED_HEALTH_H

#include <SGE.h>
using namespace SGE;

class Health
{
	public:
		Health();
		Health(int maxH);
		~Health();

		int mMaxHealth;
		void Load();
		void Unload();
		void Update(float deltaTime, SVector2 pos);
		void Render(const SVector2& viewOffset);

		void SetCurrentHealth(int health);
		void TakeDamage(int amount);
		bool IsAlive();
		int GetCurrentHealth();
		void ScaleSprite(float x, float y, bool aboutCenter);

	private:
		SGE_Sprite mSprites[6];
		SGE_Sprite* mCurrentSprite;

		SVector2 mPosition;
		int mCurrentHealth;
};
#endif //#ifndef INCLUDED_HEALTH_H